//
//  ViewController.h
//  myhuibao
//
//  Created by lijun on 13-2-4.
//  Copyright (c) 2013年 myhuibao. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MessageUI/MFMessageComposeViewController.h>
#import "RestaurantView.h"
#import "CommentView.h"
#import "MapView.h"
@interface RestaurantDetailViewController : UIViewController<UIScrollViewDelegate,UITableViewDelegate,UITableViewDataSource,MFMessageComposeViewControllerDelegate>{
    //左右滑动部分
	UIPageControl *pageControl;
    int currentPage;
    BOOL pageControlUsed;
    RestaurantView *view1;
    CommentView *view2;
    MapView *view3;
    NSMutableArray *tableDataArray;

}
- (void) getMerchant:(int) merchantId;
- (void) addBasicView;

//左右滑动相关
- (void)initScrollView;
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;
- (void)createAllEmptyPagesForScrollView;

//界面按钮事件
- (void) btnActionShow;
- (void) btnRestaurantAction;
- (void) btnRemarkAction;
- (void) btnMapAction;
- (IBAction)doShareSMS:(id)sender;
- (IBAction)doAddFavorite:(id)sender;

- (IBAction)doBack:(id)sender;
@property (retain, nonatomic) IBOutlet UIButton *btnRestaurant;
@property (retain, nonatomic) IBOutlet UIButton *btnRemark;
@property (retain, nonatomic) IBOutlet UIButton *btnMap;
@property (retain, nonatomic) IBOutlet UIScrollView *svMain;
@property (retain, nonatomic) IBOutlet UILabel *sliderLabel;
@property (assign) int merchantId;

@end
